/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.mes.quality.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 质量分析-总成下线数据实体类
 *
 * @author liuchao
 * @since 2023-02-20
 */
@Data
@TableName("qua_analysis_assembly_offline")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AnalysisAssemblyOffline对象", description = "质量分析-总成下线数据")
public class AnalysisAssemblyOffline extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 生产线
     */
    @ApiModelProperty(value = "生产线")
    private String productionLine;

    /**
     * 生产线名称
     */
    @ApiModelProperty(value = "生产线名称")
    private String productionLineName;

    /**
     * 总成号
     */
    @ApiModelProperty(value = "总成号")
    private String assemblyNo;
    /**
     * 总成名称
     */
    @ApiModelProperty(value = "总成名称")
    private String assemblyName;
    /**
     * 总成条码号/总成流水号
     */
    @ApiModelProperty(value = "总成条码号/总成流水号")
    private String assemblyBarcode;
    /**
     * 有效条码
     */
    @ApiModelProperty(value = "有效条码")
    private String assemblyNewBarcode;
    /**
     * 上线时间
     */
    @ApiModelProperty(value = "上线时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date onlineTime;
    /**
     * 完工时间
     */
    @ApiModelProperty(value = "完工时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completionTime;

    @ApiModelProperty(value = "完工开始时间")
    @TableField(exist = false)
    private String completionStartTime;

    @ApiModelProperty(value = "完工结束时间")
    @TableField(exist = false)
    private String completionEndTime;
    /**
     * 底盘号/VIN码
     */
    @ApiModelProperty(value = "底盘号/VIN码")
    private String chassisNo;
    /**
     * 数据状态（1.合格 2.免装）
     */
    @ApiModelProperty(value = "数据状态（1.合格 2.免装）")
    private String dataState;
    /**
     * 有效状态
     */
    @ApiModelProperty(value = "有效状态")
    private String finalState;

    /**
     * 班次
     */
    @ApiModelProperty(value = "班次")
    private String classes;

    /**
     * 生产批次
     */
    @ApiModelProperty(value = "生产批次")
    private String supplierBatch;

    @ApiModelProperty(value = "配方号")
    private String featureNo;
    @ApiModelProperty(value = "应急生产（1是，2否）")
    private String emergencyProduction;
    @ApiModelProperty(value = "托盘号")
    private String palletNo;
    @ApiModelProperty(value = "产线数据唯一标识")
    private Integer Wpid;
    @ApiModelProperty(value = "位置")
    private String situation;

}
